package com.telit.firecommand.dto;

import com.telit.firecommand.entity.NowWeather;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @Auther amy
 * @Describe
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SpreadDTO {

    @ApiModelProperty(value = "风向文字")
    private String windDirection;

    @ApiModelProperty(value = "风速")
    private String windSpeed;

    @ApiModelProperty(value = "蔓延分析初始速度")
    private Double spreadRate;

    @ApiModelProperty(value="风力等级")
    private String windScale;

    @ApiModelProperty(value="风向角度，范围0~360，0为正北，90为正东，180为正南，270为正西")
    private String windDirectionDegree;

    public SpreadDTO(NowWeather nowWeather, Double spreadRate){
        this.windDirection = nowWeather.getWind_direction();
        this.windScale = nowWeather.getWind_scale();
        this.windSpeed = nowWeather.getWind_speed();
        this.windDirectionDegree = nowWeather.getWind_direction_degree();
        this.spreadRate = spreadRate;
    }
}
